<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Bakalarka: Dokumentace třídy transformation</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generováno programem Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Hlavní&nbsp;stránka</span></a></li>
      <li class="current"><a href="annotated.html"><span>Třídy</span></a></li>
      <li><a href="files.html"><span>Soubory</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Seznam&nbsp;tříd</span></a></li>
      <li><a href="hierarchy.html"><span>Hierarchie&nbsp;tříd</span></a></li>
      <li><a href="functions.html"><span>Seznam&nbsp;členů&nbsp;tříd</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentace třídy transformation</h1><!-- doxytag: class="transformation" --><!-- doxytag: inherits="matrix" -->Rozšiřuje zakladní matici o transformace.  
<a href="#_details">...</a>
<p>
<code>#include &lt;<a class="el" href="transformation_8h-source.html">transformation.h</a>&gt;</code>
<p>
<div class="dynheader">
Diagram dědičnosti pro třídu transformation</div>
<div class="dynsection">

<p><center><img src="classtransformation.png" usemap="#transformation_map" border="0" alt=""></center>
<map name="transformation_map">
<area href="classmatrix.html" alt="matrix" shape="rect" coords="0,0,92,24">
</map>
</div>

<p>
<a href="classtransformation-members.html">Seznam všech členů.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Veřejné metody</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#c4a43922868f23111939aa8ec9338b1a">transformation</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Kontruktor transformační matice.  <a href="#c4a43922868f23111939aa8ec9338b1a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classtransformation.html">transformation</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#4105a060426a6d3619ee92b935893502">translation</a> (float, float)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Translace.  <a href="#4105a060426a6d3619ee92b935893502"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classtransformation.html">transformation</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#657f8f7a57c7aff12a583948c16f3260">rotation</a> (float, float, float)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Rotace.  <a href="#657f8f7a57c7aff12a583948c16f3260"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classtransformation.html">transformation</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#6d0b3c1eb0ca69a90b561ca2ed18a627">scaling</a> (float, float, float, float)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Scaling.  <a href="#6d0b3c1eb0ca69a90b561ca2ed18a627"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="af730e78e1a51221324b4e4196ffa689"></a><!-- doxytag: member="transformation::clear" ref="af730e78e1a51221324b4e4196ffa689" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#af730e78e1a51221324b4e4196ffa689">clear</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Nastaví jednotkovou matici. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bac3bbe07b8158f104fb1046de3e4321"></a><!-- doxytag: member="transformation::apply" ref="bac3bbe07b8158f104fb1046de3e4321" args="(gObject &amp;)" -->
<a class="el" href="classgObject.html">gObject</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#bac3bbe07b8158f104fb1046de3e4321">apply</a> (<a class="el" href="classgObject.html">gObject</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Aplikuje transformační matici na blok dat. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8ce013bbf408262582609065b11347bc"></a><!-- doxytag: member="transformation::apply" ref="8ce013bbf408262582609065b11347bc" args="(gObjectContainer &amp;)" -->
<a class="el" href="classgObjectContainer.html">gObjectContainer</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#8ce013bbf408262582609065b11347bc">apply</a> (<a class="el" href="classgObjectContainer.html">gObjectContainer</a> &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Aplikuje transformační matici na kontejner bloků. <br></td></tr>
<tr><td colspan="2"><br><h2>Chráněné metody</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4c85ee4985f3683130f0813cecbaadb"></a><!-- doxytag: member="transformation::multiplyGTypeGo" ref="c4c85ee4985f3683130f0813cecbaadb" args="(gTypeGo &amp;go)" -->
<a class="el" href="classgTypeGo.html">gTypeGo</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtransformation.html#c4c85ee4985f3683130f0813cecbaadb">multiplyGTypeGo</a> (<a class="el" href="classgTypeGo.html">gTypeGo</a> &amp;go)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Aplikace tranformační matice na <a class="el" href="classgTypeGo.html" title="Typ linearní interpolace.">gTypeGo</a>. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailní popis</h2>
Rozšiřuje zakladní matici o transformace. 
<p>
Jedná se o jednotkovou čtvercovou matici, násobenou z prava uvedenými tranformačními maticemi. Výsledná matice může být pak aplikovaná na bloky (<a class="el" href="classgObject.html" title="Kontejner pro instrukce.">gObject</a>) a na kontejnery bloků (<a class="el" href="classgObjectContainer.html" title="Kontejner bloků.">gObjectContainer</a>). <hr><h2>Dokumentace konstruktoru a destruktoru</h2>
<a class="anchor" name="c4a43922868f23111939aa8ec9338b1a"></a><!-- doxytag: member="transformation::transformation" ref="c4a43922868f23111939aa8ec9338b1a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">transformation::transformation           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Kontruktor transformační matice. 
<p>
Vyplní hlavní diagonálu jedničkami. 
</div>
</div><p>
<hr><h2>Dokumentace k metodám</h2>
<a class="anchor" name="657f8f7a57c7aff12a583948c16f3260"></a><!-- doxytag: member="transformation::rotation" ref="657f8f7a57c7aff12a583948c16f3260" args="(float, float, float)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtransformation.html">transformation</a> &amp; transformation::rotation           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Rotace. 
<p>
Rotace o úhel alfa v radianech kolem počátku [x, y]. <dl compact><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>angle</em>&nbsp;</td><td>Úhel v radianech. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>Souřadnice počátku. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Souřadnice počátku. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="6d0b3c1eb0ca69a90b561ca2ed18a627"></a><!-- doxytag: member="transformation::scaling" ref="6d0b3c1eb0ca69a90b561ca2ed18a627" args="(float, float, float, float)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtransformation.html">transformation</a> &amp; transformation::scaling           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Scaling. 
<p>
Změna měřítka. <dl compact><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>sx</em>&nbsp;</td><td>Měřítko pro osu x 1:sx. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>sy</em>&nbsp;</td><td>Měřítko pro osu y 1:sy. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>Souřadnice počátku. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>Souřadnice počátku. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="4105a060426a6d3619ee92b935893502"></a><!-- doxytag: member="transformation::translation" ref="4105a060426a6d3619ee92b935893502" args="(float, float)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classtransformation.html">transformation</a> &amp; transformation::translation           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>dy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Translace. 
<p>
Posunutí souřadnic o vektor [x, y]. <dl compact><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dx</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dy</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>Dokumentace pro tuto třídu byla generována z následujících souborů:<ul>
<li>src/<a class="el" href="transformation_8h-source.html">transformation.h</a><li>src/transformation.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generováno Tue Mar 2 10:34:17 2010 pro projekt Bakalarka programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
